package health.lm.com.mine.present;


import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.mine.activity.FeedbackActivity;
import health.lm.com.mine.model.MineModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * 意见反馈
 * @author Administrator
 */

public class FeedbackPresenter extends XPresent<FeedbackActivity> {

    public void submit(String content) {
        MineModel.getInstance().feedback(content, new SimpleCallBack<Object>() {
            @Override
            public void onSuccess(Object o) {
                if (hasV()){
                    getV().setData();
                }
            }
        });

    }
}
